package com.muyu.payment.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.muyu.common.core.annotation.Excel;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import com.muyu.common.core.web.domain.BaseEntity;

/**
 * 支付订单数据库映射对象 payment_indent
 *
 * @author muyu
 * @date 2025-09-18
 */
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@TableName("payment_indent")
@Schema(description = "支付订单")
public class PaymentIndent {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description = "主键ID")
    private Long id;

    /**
     * 订单号
     */
    @Excel(name = "订单号")
    @Schema(description = "订单号")
    private String orderNo;

    /**
     * 订单金额
     */
    @Excel(name = "订单金额")
    @Schema(description = "订单金额")
    private BigDecimal amount;

    /**
     * 用户ID
     */
    @Excel(name = "用户ID")
    @Schema(description = "用户ID")
    private Long userId;

    /**
     * 支付状态(1:待支付,2:已支付,3:已完成,4:已取消)
     */
    @Excel(name = "支付状态")
    @Schema(description = "支付状态")
    private Integer orderStatus;

    /**
     * 删除标志（0-未删除，1-已删除）
     */
    @TableLogic
    @Schema(description = "删除标志")
    private Integer delFlag;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "创建时间")
    private Date createTime;

    /**
     * 订单名称
     */
    @Excel(name = "订单名称")
    @Schema(description = "订单名称")
    private String subject;

    /**
     * 订单描述
     */
    @Excel(name = "订单描述")
    @Schema(description = "订单描述")
    private String body;

    /**
     * 备注
     */
    @Excel(name = "备注")
    @Schema(description = "备注")
    private String remark;

    /**
     * 订单过期时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "订单过期时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "订单过期时间")
    private Date expireTime;
}